package ObjGitService

import (
	"arabApi/app/api/models/ObjGitModel"
	"arabApi/app/api/requests/CRequest"
	"arabApi/app/api/requests/ObjGitRequest"
	"github.com/spf13/cast"
)

func List(r CRequest.Cpage) ([]ObjGitModel.TpObjJob, int64) {
	return ObjGitModel.List(r)
}

func Add(r ObjGitRequest.ObjGitRequest) (uint64, error) {
	return ObjGitModel.Add(r)
}
func Edit(r ObjGitRequest.ObjGitRequest) error {
	return ObjGitModel.Edit(r)
}
func MsgByID(r string) ObjGitModel.TpObjJob {
	id := cast.ToInt64(r)
	return ObjGitModel.MsgByid(id)
}
